html {
  font-family: $font-family;
  -ms-text-size-adjust: 100%;
  -webkit-text-size-adjust: 100%;
  box-sizing: border-box;
}

.pure-g [class*=pure-u] {
  font-family: $font-family;
}

body {
  color: $color-text;
  font: 14px/1.5 $font-family;
}

*, :after, :before {
  box-sizing: inherit;
}

body,
div,
dl, dt, dd, ul, ol, li,
h1, h2, h3, h4, h5, h6,
pre, code,
form, fieldset, legend,
input, textarea,
p, blockquote, th, td,
hr, button,
article, aside, details, figcaption, figure, footer, header, hgroup, menu, nav, section {
  margin: 0;
  padding: 0
}

article,
aside,
details,
figcaption,
figure,
footer,
header,
hgroup,
main,
nav,
section,
summary {
  display: block;
}

audio,
canvas,
progress,
video {
  display: inline-block;
  vertical-align: baseline;
}

h1, h2, h3, h4, h5, h6 {
  font-size: 100%;
  font-weight: 400;
}

:-moz-ui-invalid:not(output) {
  box-shadow: none;
}

button,
input,
select,
textarea {
  font: 12px/1.5 tahoma, arial, "Hiragino Sans GB", \5b8b\4f53;
}

input,
select,
textarea {
  font-size: 100%
}

table {
  border-collapse: collapse;
  border-spacing: 0
}

th {
  text-align: inherit
}

fieldset,
img {
  border: 0
}

iframe {
  display: block
}

abbr,
acronym {
  border: 0;
  font-variant: normal;
}

del {
  text-decoration: line-through;
}

address,
caption,
cite,
code,
dfn,
em,
th,
var {
  font-style: normal;
  font-weight: 400;
}

ol,
ul {
  list-style: none;
}

caption,
th {
  text-align: left;
}

q:before,
q:after {
  content: ''
}

sub,
sup {
  font-size: 75%;
  line-height: 0;
  position: relative;
  vertical-align: baseline
}

sup {
  top: -.5em
}

sub {
  bottom: -.25em
}

ins, a {
  text-decoration: none
}

code,
kbd,
pre,
samp {
  font-family: 'Monaco', 'Menlo', 'Ubuntu Mono', 'Consolas', 'source-code-pro', monospace;
  font-size: 1em
}

a {
  text-decoration: none;
  background: transparent;
  color: $color-text;
  &:hover {
    color: $color-primary;
  }
}

:focus {
  outline: none;
}

b,
strong {
  font-weight: 700;
}

.layout:after,
.clf:after {
  visibility: hidden;
  display: block;
  font-size: 0;
  content: '.';
  clear: both;
  height: 0
}

.layout,
.clf {
  zoom: 1;
}

.clear {
  font-size: 0;
  line-height: 0;
  height: 0;
  clear: both;
  visibility: hidden;
  overflow: hidden
}

.fl {
  float: left;
}

.fr {
  float: right;
}

%app {
  -webkit-appearance: none;
  -moz-appearance: none;
}

@each $type in text, email, search, password, radio {
  input {
    &[type="#{$type}"] {
      @extend %app;
    }
  }
}